package org.example;

import org.example.controller.B;
import org.example.entity.Student;
import org.example.service.Aa;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) throws Exception {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-context.xml");
        B b = (B) context.getBean("b");
        System.out.println(b);

    }
}